package com.wn.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wn.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wn.vo.CoursePublishVo;
import com.wn.vo.CourseQueryVo;
import com.wn.vo.CourseVo;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author yellow docker
 * @since 2023-06-20
 */
public interface CourseMapper extends BaseMapper<Course> {

    CoursePublishVo findPublish(String courseId);

    /**
     * 基于 xml 写 分页操作
     * 1、参数  存放  IPage
     * 2、返回结果:  IPage
     * @param p
     * @return
     */
    IPage<CourseVo> findAllPageCourse(IPage<CourseQueryVo> p);

}
